package com.guigu.lc.controller;

import com.guigu.lc.serach.designproductSerach;
import com.guigu.lc.service.DesignService;
import com.guigu.lc.view.mdesignprocedureview;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * 制定产品生产工序单的Controller
 */
@Controller
@RequestMapping("/lc")
public class designController {


    @Resource
    private DesignService designService;
    //制定产品生产工序设计单查询(异步)
    @RequestMapping("/querypageall")
    @ResponseBody()
    public designproductSerach querypageall(designproductSerach vo){
        return this.designService.querydfilepageService(vo);
    }

    @RequestMapping("/zhidingshejidan")
    @ResponseBody()
    public int zhidingshejidan(@RequestBody mdesignprocedureview mdesignprocedureview){
        System.out.println(11);
        this.designService.updateinsertdesign(mdesignprocedureview);
        return 1;
    }

}
